package com.ys.peony.app;

import android.os.Environment;

import java.io.File;

/**
 * 全局变量存储类
 *
 * @author Hunter
 */
public class YSConstant {

    //应用名称
    public static final String appName = "peony";
    /////////////////////////////////// 文件保存 /////////////////////////////////////////
    public static final String LOG_FILE = "log_" + appName + ".txt";//系统抓取的错误日志

    public static final int PAGE_NUM = 10;//分页数量

    // 数据库名称
    public static final String DATABASE_NAME = "leshow";

    public static final String SD_FILE_PATH = Environment.getExternalStorageDirectory().getPath() + File.separator + appName + File.separator + "files";

    //请求成功
    public static final String HTTP_SUCCESS = "0";

    //请求失败
    public static final String HTTP_FAILURE = "1";

    //成功
    public static final String SUCCESS = "0";

    //失败
    public static final String FAIL = "1";

    public static final String SP_USERTOKEN = "usertoken";

    //获取用户信息
    public static final String USER_INFO = "user_info";
    public static final String SP_USERID = "userId";
    public static final String SP_PWD = "pwd";
    public static final String SEARCH_KEYS = "searchkey";

    //無效
    public static final int INVALID = -1;
    //上拉
    public static final int ACTION_TYPE_UP = 1;
    //下拉
    public static final int ACTION_TYPE_DOWN = 2;

    public final static long TIME_25 = 25 * 60 * 1000; //用户有效时间

    ////////////////////////////////////////////// Activity 传参 //////////////////////////////////////////////////////

    public static final int ACTIVITY_ADD_YW_CLIENT = 111;
    public static final int ACTIVITY_TAKE_PIC = 112;
    public static final int ACTIVITY_TAKE_USER_HEADIMG = 113;
    public static final int ACTIVITY_AREACODE = 114;
    public static final int ACTIVITY_CAR_AREACODE = 115;
    public static final int ACTIVITY_CAR_BRANCH = 116;

    public static final int POP_TYPE_DUTY = 0;//客户基本信息-职务
    public static final int POP_TYPE_MARRIGE = 1;//客户基本信息-婚姻状况
    public static final int POP_TYPE_PROPERTYSTATUS = 2;//客户基本信息-产权状态
    public static final int POP_TYPE_COMPANYTYPE = 3;//客户基本信息-单位性质
    public static final int POP_TYPE_SEX = 4;//客户基本信息-性别代码
    public static final int POP_TYPE_CARAREA = 5;//车辆信息-产地
    public static final int POP_TYPE_HASPROPERTY = 6;//客户基本信息-是否有产权 0 否 1 是
    public static final int POP_TYPE_CAR_OWNERSHIP = 7;//车辆信息-权属标记
    public static final int POP_TYPE_INDUSTRY = 8;//客户基本信息-行业
    public static final int POP_TYPE_ISTOTALLOAN = 9;//客户基本信息-行业
    public static final int POP_TYPE_ISLOCALHOUSE = 10;//客户基本信息-是否本地房产 0 否 1 是


     /**  抵押物登记 **/

    public static final int POP_TYPE_GONGKUANG = 11;//工况情况
    public static final int POP_TYPE_COLOR = 12;//颜色
    public static final int POP_TYPE_DECORATE = 13;//内饰
    public static final int POP_TYPE_APPERANCE = 14;//外观

    public static final int POP_TYPE_AREA = 15;//地区
    public static final int POP_TYPE_QS = 16;//权属类型

    public static final int POP_TYPE_TAXCOMPANY = 17;//保险公司
    public static final int POP_TYPE_TAXTYPE = 18;//保单类型


    public static final int POP_DATE_DEFAULT = 0; //默认传值
    public static final int POP_DATE_FIRSTSIGN = 1; //首次上牌
    public static final int POP_DATE_SIGNTIME = 2; //注册时间
    public static final int POP_DATE_FAZHENGTIME = 3; //发证时间
    public static final int POP_DATE_CHUCHANGTIME = 4; //出厂日期

    public static final int POP_DATE_TAX_START = 5; //保险起时间
    public static final int POP_DATE_TAX_END = 6; //保险止时间
    public static final int POP_DATE_TAX_TIME = 7; //保险签订时间

    //////////////////////////// 保存////////////////////////////
    public static final String SP_CAR_BRANCH = "car_branch";
    public static final String SP_CAR_AREACODE = "car_areacode";
    public static final String SP_AREACODE = "areacode";
    public static final String SP_CAR_OWNERSHOP = "car_ownershop";
    public static final String SP_HTTP_BASEURL = "base_url";


    //待面审
    public static final String DAIMIANSHEN = "dq-ms";
    //获取用户ID
    public static final String USER_INFO_ID = " 75";

    //客户
    public static final String CLASS_CUSTOMER = "1";
    //抵押物
    public static final String CLASS_COLLATERAL = "2";

//    //身份证正面
//    public static final int FRONT = 1;
//    //身份证背面
//    public static final int BACK = 2;
//    //人脸
//    public static final int FACE = 3;

    //返回身份证照片合法性检查结果，值只取“0”或“1”。“1”：返回； “0”：不返回。默认“0”。
    public static final String LEGAL_CHECK_YES = "1";

    public static final String LEGAL_CHECK_NO = "0";

    //人脸识别请求成功
    public static final String REQUEST_SUCCESS = "MISSING_ARGUMENTS: image_best";

    public static final int Activity_RESULT_OK = -1;

    //通用参数字段
    public static final String PARAM = "param";

    //验证码倒计时时间
    public static final int VERIFY_TIME = 60000;

    //验证码倒计时时间间隔
    public static final int VERIFY_TIME_INTERVAL = 1000;
}
